//
//  ActionDetail.h
//  nova
//
//  Created by user on 11/06/12.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Action.h"
#import "novaAppDelegate.h"
#import "Library.h"
#import "DatePicker.h"
#import "ProjectCommentList.h"
#import "SavePopup.h"
#import "ProjectHistoryList.h"
#define myAppDelegate (novaAppDelegate *) [[UIApplication sharedApplication] delegate]

@class Action;
@class SavePopup;
@class ProjectCommentList;

@interface ActionDetail : UIViewController {
	IBOutlet UIScrollView *scroll;
	IBOutlet UILabel *lblProject;
	IBOutlet UILabel *lblDateCreated;
	IBOutlet UITextView *txtDescription;
	IBOutlet UIProgressView *progress;
	IBOutlet UILabel *lblProgressLabel;
	//IBOutlet UINavigationItem *navigationItem;
	IBOutlet UIButton *btBaselineFinish;
	IBOutlet UIButton *btFinish;
	IBOutlet UIButton *btPriority;
	IBOutlet UIButton *btOwner;
	IBOutlet UIView *backgroundView;
	ProjectCommentList* commentListView;
	ProjectHistoryList* historyListView;
	Action *action;
}

@property (readwrite, assign)  Action * action;
//@property (readwrite, assign)  UINavigationItem *navigationItem;

-(IBAction) openDetails;
-(IBAction) openComments;
-(IBAction) openHistory;
-(IBAction) saveAction;
-(IBAction) cancelChanges;
-(IBAction) textFieldReturn : (id) sender;
-(IBAction) textFieldValueChanged : (id) sender;
-(IBAction) btFinishDateClick : (id) sender;
-(IBAction) btBaseLineFinishDateClick : (id) sender;
-(IBAction) btOwnerClick : (id) sender;
-(IBAction) btPriorityClick : (id) sender;
-(void) initObjects;

@end
